﻿#ifndef SEARCHHOTELCONTENT_H
#define SEARCHHOTELCONTENT_H

#include <QWidget>
#include "globalvars.h"


namespace Ui {
class SearchHotelContent;
}

class SearchHotelContent : public QWidget
{
    Q_OBJECT
signals:
    void signalGainHotelDetails(const QString&);
    void signalWatchComment();

public:
    explicit SearchHotelContent(QWidget *parent = nullptr);
    ~SearchHotelContent();

    void initWindowsUnits();
    void setCount(int count);
    void setImage(const QImage& image);
    HotelInfo getHotelInfo();
    const QString& getHotelID();

private slots:
    void on_pb_watchDetails_clicked();
    void on_pb_name_clicked();
    void on_pb_watchComment_clicked();

private:
    Ui::SearchHotelContent *ui;
    QString m_hotelID;
    HotelInfo m_hotelInfo;
};

#endif // SEARCHHOTELCONTENT_H
